<?php

use yii\db\Migration;

class m170222_011013_alter_customer extends Migration
{
    public function safeUp()
    {
        $this->renameColumn('{{%customer}}','qrcode','gttopenid');
        $this->addColumn('{{%customer}}','zhtopenid','varchar(255) default NULL comment \'综合体openid\'');
        $this->addColumn('{{%customer}}','gxyopenid','varchar(255) default NULL comment \'管弦乐openid\'');
    }

    public function safeDown()
    {
        $this->renameColumn('{{%customer}}','gttopenid','qrcode');
        $this->dropColumn('{{%customer}}','zhtopenid');
        $this->dropColumn('{{%customer}}','zhtopenid');
    }
}
